// 建立上下文关系
const files = require.context('../../views/',true,/\.js$/);
// 声明组件
const components = [];
// 循环文件
files.keys().forEach(key => {
    if (key.includes('./index')||key.includes('./login/')){
    return false}
    const splitFileName = key.split('.')
    const jsonObj = {}
    const path = `/index`+splitFileName[1].toLowerCase()
    const component = files(key).default
    jsonObj.path = path
    jsonObj.component = component
    components.push(jsonObj)
});
export default components;
